﻿//------------------------------------------------------------------------------
// <copyright file="RpcArchiveValueIsNullException.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------

namespace Microsoft.Internal.GamesTest.Rpc.Client
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// This exception is raised when a value within an RpcArchive is null.  Currently null values are not allowed in TDK RPC.
    /// </summary>
    [Serializable]
    public class RpcArchiveValueIsNullException : RpcException
    {
        /// <summary>
        /// Initializes a new instance of the RpcArchiveValueIsNullException class.
        /// </summary>
        public RpcArchiveValueIsNullException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the RpcArchiveValueIsNullException class.
        /// </summary>
        /// <param name="message">The message describing the exception.</param>
        public RpcArchiveValueIsNullException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the RpcArchiveValueIsNullException class.
        /// </summary>
        /// <param name="message">The message describing the exception.</param>
        /// <param name="inner">Any applicable inner exception.</param>
        public RpcArchiveValueIsNullException(string message, Exception inner)
            : base(message, inner)
        {
        }

        /// <summary>
        /// Initializes a new instance of the RpcArchiveValueIsNullException class.
        /// </summary>
        /// <param name="info">The SerializationInfo for this exception.</param>
        /// <param name="context">The StreamingContext for this exception.</param>
        protected RpcArchiveValueIsNullException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {
        }
    }
}
